package com.ruoyi.mysqldump.service.impl;

import com.ruoyi.common.utils.PageUtils;
import org.springframework.stereotype.Service;
import com.ruoyi.common.core.mybatisplus.core.ServicePlusImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.mysqldump.domain.BizProjectInfo;
import com.ruoyi.mysqldump.mapper.BizProjectInfoMapper;
import com.ruoyi.mysqldump.vo.BizProjectInfoVo;
import com.ruoyi.mysqldump.service.IBizProjectInfoService;

import java.util.List;

/**
 * 项目管理Service业务层处理
 *
 * @author Tellsea
 * @date 2022-02-11
 */
@Service
public class BizProjectInfoServiceImpl extends ServicePlusImpl<BizProjectInfoMapper, BizProjectInfo> implements IBizProjectInfoService {

    @Override
    public TableDataInfo<BizProjectInfoVo> queryList(BizProjectInfoVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public BizProjectInfoVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
